<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:88:"/www/wwwroot/jiedai.bianshenn.top/public/../application/admin/view/loan/loan_insert.html";i:1552890191;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="../css/pintuer.css">
    <link rel="stylesheet" href="../css/admin.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/pintuer.js"></script>
    <script src="../layer/layer.js"></script>
</head>
<body>
<form action="expressadd" method="post" name="formadd">
    <div class="panel admin-panel">
        <div class="panel-head"><strong> 快递信息</strong></div>
        <div class="body-content">
            <div class="form-x">
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">用户账号：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="memberid" id="memberid"  value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">打款姓名：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="bankname" id="bankname" value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">银行账户：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="bankaccount" id="bankaccount"  value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">开户地址：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="bankaddress" id="bankaddress" value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">是否审核：</label>
                    </div>
                    <div class="field">
                        <select id="type" class="input w50" name="examine" id="examine">
                            <option value="0" selected>未审核</option>
                            <option value="1" >已审核</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">紧急联系人1：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="emergencycontact1" id="emergencycontact1" value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">紧急联系人2：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="emergencycontact2" id="emergencycontact2" value="" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">紧急联系人3：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" name="emergencycontact3" id="emergencycontact3"  value="" size="50" />
                    </div>
                </div>
            </div>

                </div>
                <center><button class="button bg-main icon-check-square-o" onclick="express_insert()"> 提交</button>   </center>
            </div>
        </div>
    </div>
</form>
</body>
<script>
    function express_insert() {
        var memberid = $(" input[ name='memberid' ] ").val();
        var bankname  = $(" input[ name='bankname' ] ").val();
        var bankaccount  = $(" input[ name='bankaccount' ] ").val();
        var bankaddress  = $(" input[ name='bankaddress' ] ").val();
        var examine  = $(" input[ name='examine' ] ").val();
        var emergencycontact1  = $(" input[ name='emergencycontact1' ] ").val();
        var emergencycontact2  = $(" input[ name='emergencycontact2' ] ").val();
        var emergencycontact3 = $("input[ name ='emergencycontact3' ]").val();
        if(memberid == ""){
            alert('用户用户账号不能为空');
            return false;
        }
        if(bankname == ""){
            alert('打款姓名不能为空');
            return false;
        }
        if(bankaccount == ""){
            alert('银行账户不能为空');
            return false;
        }
        if(bankaddress == ""){
            alert('开户地址不能为空');
            return false;
        }
        if(examine == ""){
            alert('是否审核不能为空');
            return false;
        }
        if(emergencycontact1 == ""){
            alert('紧急联系人1不能为空');
            return false;
        }
        if(emergencycontact2 == ""){
            alert('紧急联系人1不能为空');
            return false;
        }
        if(emergencycontact3 == ""){
            alert('紧急联系人3不能为空');
            return false;
        }

        document.formadd.submit();
    }
</script>
</html>